package com.xbongbong.paas.domain.dao;

import com.xbongbong.paas.domain.entity.PaasProcessRichTextEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface PaasProcessRichTextDao {
    Long insert(PaasProcessRichTextEntity entity);

    void insertBatch(List<PaasProcessRichTextEntity> list);

    PaasProcessRichTextEntity getByKey(@Param("key") Long key, @Param("corpid") String corpid);

    Integer update(PaasProcessRichTextEntity entity);

    Integer updateByTaskId(PaasProcessRichTextEntity entity);

    List<PaasProcessRichTextEntity> findEntities(@Param("param") Map<String, Object> param);

    List<Long> getIdList(@Param("params") Map<String, Object> params);

    Integer getEntitiesCount(@Param("param") Map<String, Object> param);

    PaasProcessRichTextEntity getByTaskId(@Param("taskId") Long taskId,@Param("corpid") String corpid);

    void deleteComplete(@Param("params") Map<String, Object> params);
}